<?php
//api
Route::resource('api/account', 'api/Account')->allowCrossDomain();
Route::resource('api/attachment', 'api/Attachment')->allowCrossDomain();
Route::resource('api/bill', 'api/Bill')->allowCrossDomain();
Route::resource('api/cate', 'api/Cate')->allowCrossDomain();
Route::resource('api/config', 'api/Config')->allowCrossDomain();
Route::resource('api/favorite', 'api/Favorite')->allowCrossDomain();
Route::resource('api/forum', 'api/Forum')->allowCrossDomain();
Route::resource('api/history', 'api/History')->allowCrossDomain();
Route::resource('api/reply', 'api/Reply')->allowCrossDomain();
Route::resource('api/role', 'api/Role')->allowCrossDomain();
Route::resource('api/subscribe', 'api/Subscribe')->allowCrossDomain();
Route::resource('api/user', 'api/User')->allowCrossDomain();
Route::resource('api/index', 'api/Index')->allowCrossDomain();
//home
Route::rule('/', 'home/Index/index');

return [];